#第四题
# bags = ['a','b','c','d']
# print(bags[int('3' * 2) // 11])
# print(bags[-1])
# print(bags[-2])

#第五题
# bacon = [3.14, 'cat', 11, 'cat', True]
# # print(bacon.index('cat'))
# # bacon.append(99)  #会将99添加到最后
# # print(bacon)
# bacon.remove('cat')
# print(bacon)   #移除第一个'cat'
#

# tuple1 = (56,)
# print(type(tuple1),tuple1)



li = ['ethan', 'zoran', 'jim']
# print(list.__len__(li))  第一题

# list .append(li,'lucy')  #第二题
# print(li)

# list.insert(li,0,'tony')  #第三题
# print(li)

#
# li[1] ='kelly'
# print(li)
#
# list.remove(li,'ethan')
# print(li)


a = li.pop(2)
print(a)
print(li)


